package com.zrrd.straw1.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data  //  setter/getter/toString
@Accessors(chain = true)
public class AnswerVo {
    @NotNull(message = "问题ID不能为空")   // 仅判断值为 null 时
    private Integer questionId;
    @NotBlank(message = "回答内容不能为空") // 判断值为 null, "" , " "
    private String content ;
}
